package net.tbao.product.feign;

import net.tbao.common.utils.R;
import net.tbao.product.feign.fallback.ProtectFeignServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Description 远程调用库存服务
  * @author ZhangWang
  * @email 2248656478@qq.com
 * @date 2021-01-27 13:11:03
 **/
@FeignClient(value = "taobao-ware",fallback = ProtectFeignServiceFallBack.class)
public interface WareFeignService {

    @PostMapping("/ware/waresku/hasstock")
     R getSkusHasStock(@RequestBody List<Long> skuIds);
}
